﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.CommandDispatches.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.CommandDispatches
{
    /// <summary>
    /// 指挥调度服务接口
    /// </summary>
    public interface ICommandDispatchAppService : IApplicationService
    {
        #region 指挥调度管理

        /// <summary>
        /// 根据查询条件获取指挥调度分页列表
        /// </summary>
        Task<PagedResultDto<CommandDispatchListDto>> GetPagedCommandDispatchsAsync(GetCommandDispatchInput input);

        /// <summary>
        /// 通过Id获取指挥调度信息进行编辑或修改 
        /// </summary>
        Task<GetCommandDispatchForEditOutput> GetCommandDispatchForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取指挥调度ListDto信息
        /// </summary>
        Task<CommandDispatchListDto> GetCommandDispatchByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改指挥调度
        /// </summary>
        Task CreateOrUpdateCommandDispatchAsync(CreateOrUpdateCommandDispatchInput input);





        /// <summary>
        /// 新增指挥调度
        /// </summary>
        Task<CommandDispatchEditDto> CreateCommandDispatchAsync(CommandDispatchEditDto input);

        /// <summary>
        /// 更新指挥调度
        /// </summary>
        Task UpdateCommandDispatchAsync(CommandDispatchEditDto input);

        /// <summary>
        /// 删除指挥调度
        /// </summary>
        Task DeleteCommandDispatchAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除指挥调度
        /// </summary>
        Task BatchDeleteCommandDispatchAsync(List<long> input);

        #endregion

        #region Excel导出功能



        /// <summary>
        /// 获取指挥调度信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetCommandDispatchToExcel();

        #endregion

    }
}
